#include "form.h"
#include "ui_form.h"
#include "qpainter.h"
#include "qtabbar.h"
Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
//    ui->tabWidget->tabBar();
//    ui->tabWidget->setTabBarAutoHide(true);
//    ui->tabWidget->setTabEnabled(0,false);
//    ui->tabWidget->setTabEnabled(1,false);
//    ui->tabWidget->setStyleSheet("QTabBar::tab{width:0;height:0;color:transparent;}");
    ui->tabWidget->tabBar()->close();



}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_clicked()
{
    this->close();
}
void Form::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.drawPixmap(rect(),QPixmap(":/images/share/selectmodel_page_bg2.png"),QRect());
}
